Skip to content

new writedown mode partbyenum and new intraday process - #656

Merged
Papamaci444 merged 23 commits into
DataIntellectTech:masterfrom
Papamaci444:partbyenum
Sep 24, 2024
Merged

Papamaci444 merged 23 commits into
DataIntellectTech:masterfrom
Papamaci444:partbyenum

Conversation

@Papamaci444

@Papamaci444 Papamaci444 commented Jun 12, 2024 •

Copy link
Copy Markdown
Contributor

TorQ IDB process requirements:

  • works with both default and partbyenum writedown modes
  • needs a WDB(and a HDB) to be operational
    • the WDB gets written to a different partition at rollover but the location of the sym is static(as it is in the HDB)
  • on startup an IDB:
    • connects to the WDB and retrieves settings required
      • HDB, WDB location, current partition, writedown mode
    • registers itself with the WDB process
      • after EOD rollover the WDB initialises an empty partition(with new partition) with all tables present -> WDB is(almost) always ready to be loaded
    • loads the WDB and the HDB sym file
      • records size of sym file on disk
      • records counts of intraday partitions
  • can be triggered for intraday reload.
    • reloads the sym file ONLY if its size on disk has changed
    • reloads the DB ONLY if the number of partitions has changed - only in case of partbyenum writedown mode
    • the WDB process triggers the intraday reload on all IDBs which it is aware of
      • this should work as all IDBs register themselves with the WDB process
    • current partition is the input parameter for intradayreload:{[partition]
      • example directory structure: wdb/2024.09.05/0/trade/.d (for partbyenum writedown mode)
        wdb/2024.09.05/trade/.d (for default writedown mode)
        hdb/sym
  • has a maptoint function defined to support queries when partbyenum writedown method is used
  • queries can be routed to IDB via the gateway
    • the gateway does loadbalancing between different IDB instances
  • the user has to be mindful when to query the IDB
    • it will have data overlapping with the RDB
      • the gateway/dataaccess api does not solve this issue
  • IDB fails fast - if there is an error loading the DB -> it fails

Comment thread code/processes/idb.q Resolved
Comment thread config/settings/wdb.q Resolved
Comment thread config/settings/idb.q Resolved
@jonnypress

Copy link
Copy Markdown
Contributor

Also - given we are adding a new process type, need to extend out the documentation to include that process type (what it does, why, how etc.)

@jonathonmcmurray jonathonmcmurray left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, a few initial comments from me

Comment thread code/common/os.q Resolved
Comment thread code/idb/idbstandard.q Resolved
Comment thread code/idb/idbstandard.q Resolved
Comment thread code/idb/idbstandard.q Resolved
Comment thread code/processes/idb.q Resolved
Comment thread code/processes/wdb.q Resolved
Comment thread code/processes/wdb.q Resolved
Comment thread code/processes/wdb.q Resolved
Comment thread code/processes/wdb.q Resolved
Comment thread code/processes/wdb.q Resolved

@jonathonmcmurray jonathonmcmurray left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few comments - haven't looked at docs or unit tests yet (think you mentioned docs might be updated further)

Comment thread code/common/merge.q Resolved
Comment thread code/common/merge.q Resolved
Comment thread code/idb/idbstandard.q Resolved
Comment thread code/processes/wdb.q Resolved
Comment thread code/processes/idb.q Resolved
Comment thread code/processes/wdb.q Resolved
Comment thread code/processes/wdb.q Resolved
Comment thread code/processes/wdb.q Resolved
Comment thread code/wdb/writedown.q Resolved
Comment thread config/settings/wdb.q Resolved

@jonathonmcmurray jonathonmcmurray left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

few minor comments/questions but I think this looks good

Comment thread code/processes/idb.q Resolved
Comment thread code/processes/idb.q Resolved
Comment thread code/processes/idb.q Resolved
Comment thread code/processes/idb.q Resolved
Comment thread code/processes/wdb.q Resolved
Comment thread code/processes/wdb.q Resolved
Comment thread code/processes/wdb.q Resolved
@Papamaci444
Papamaci444 merged commit b74ad0e into DataIntellectTech:master Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants